Skip to content

feat(accounts): restore per-account proxy overrides - #667

Merged
caigee-cmd merged 1 commit into
mainfrom
feat/account-proxy-override
Dec 5, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
feat/account-proxy-override

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • Each account can set its own outbound proxy again. A non-empty value overrides the provider proxy and the global proxy. Leave it blank to inherit the provider proxy for that provider and region, then the global proxy. direct or none bypasses both.
  • The console edits the stored override, not the effective proxy, so saving an account does not pin an inherited provider proxy. Export and import use the stored override for the same reason. The account card shows a non-empty override.
  • On the first start after this upgrade, a stored proxy that exactly matches the current provider proxy is cleared once, so later provider-proxy edits still apply. A stored value that differs becomes a live override again. This can undo a provider-proxy edit made after v0.7.45. Accounts created after a provider policy existed, with an empty proxy, keep inheriting. The one-time pass is gated by the secret account_proxy_overrides_reconciled_v1.

Fixes #660

Test plan

  • go test ./internal/store ./internal/control ./internal/app -count=1
  • python3 scripts/release-notes.py validate
  • cd frontend && npm run sync so internal/webui/static matches frontend/dist
  • CI: go, worker, frontend, container, windows-host

An account proxy overrides the provider and global proxies. Leave it
blank to inherit the provider proxy, then the global one. direct and
none bypass both.

On upgrade, a stored proxy that matches the current provider proxy is
cleared once, so later provider edits still apply. A different stored
value becomes a live override again.
@caigee-cmd
caigee-cmd merged commit 1fa988a into main Dec 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

为什么把给每个账号单独设置代理的功能取消了,好难受啊。

1 participant